<!--  -->
<template>
  <div>
    <!-- <el-menu :default-active="activeMenu" class="g-side" router>
      <template v-for="(route, index) in menus">
        <template>
          <el-menu-item :route="route" :index="route.name" :key="index">{{route.meta.name || route.name}}</el-menu-item>
        </template>
      </template>
    </el-menu> -->
    <p>123</p>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
export default {
  name: 'index',
  data () {
    return {
      menus: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    console.log(this.$route.matched)
  }
}
</script>
